<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../../css/asserts/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="../../css/asserts/font-awesome.min.css" />
    <!--[if IE 7]>
    <link rel="stylesheet" href="../../css/asserts/font-awesome-ie7.min.css" />
    <![endif]-->
    <link rel="stylesheet" href="../../css/asserts/ace.min.css" />
    <link rel="stylesheet" href="../../css/asserts/ace-rtl.min.css" />
    <link rel="stylesheet" href="../../css/asserts/ace-skins.min.css" />
    <link rel="stylesheet" href="../../css/style.css"/>
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="../../css/asserts/ace-ie.min.css" />
    <![endif]-->
    <script src="../../js/assert/ace-extra.min.js"></script>
    <!--[if lt IE 9]>
    <script src="../../js/assert/html5shiv.js"></script>
    <script src="../js/assert/respond.min.js"></script>
    <![endif]-->
    <script src="../../js/jquery-1.9.1.min.js"></script>
    <script src="../../js/assert/layer.js" type="text/javascript"></script>
    <script src="../../js/login.js"></script>
    <title>登陆</title>
</head>

<body class="login-layout Reg_log_style">
<div class="logintop">
    <span>欢迎资金账户进行登录</span>
    <ul>
        <li><a href="../.././index.html">返回首页</a></li>
        <li><a href="#">帮助</a></li>
        <li><a href="#">关于</a></li>
    </ul>
</div>
<div class="loginbody">
    <div class="login-container">
        <div class="center">
        </div>
        <div class="space-6"></div>
        <div class="position-relative">
            <div id="login-box" class="login-box widget-box no-border visible">
                <div class="widget-body">
                    <div class="widget-main">
                        <h4 class="header blue lighter bigger">
                            <i class="icon-coffee green"></i>
                            资金账户登录
                        </h4>
                        <div class="login_icon"><img src="../.././images/login.png" /></div>
                        <form id="flogin_form"  >
                            <fieldset>
                                <ul>
                                    <li class="frame_style form_error"><label class="user_icon"></label><input  type="text" placeholder="请输入资金账户名" id="name" name="name"/></li>
                                    <li class="frame_style form_error"><label class="password_icon"></label><input  type="password"  placeholder="请输入密码"  id="password" name="password"/></li>
                                </ul>
                                <div class="space"></div>
                                <div class="clearfix">
                                    <button type="button" class="width-35 pull-right btn btn-sm btn-primary" id="login_btn" onclick="fLogin_sys()">
                                        <i class="icon-key"></i>
                                        登陆
                                    </button>
                                </div>
                                <div class="space-4"></div>
                            </fieldset>
                        </form>

                        <div class="social-or-login center">
                            <span class="bigger-110">通知</span>
                        </div>
                    </div><!-- /widget-main -->

                    <div class="toolbar clearfix">
                    </div>
                </div><!-- /widget-body -->
            </div><!-- /login-box -->
        </div><!-- /position-relative -->
    </div>
</div>
<div class="loginbm">版权所有  2017  <a href="">春月才华有限公司</a> </div><strong></strong>
</body>
</html>
<script type="text/javascript">
    //
    function fLogin_sys() {
        console.log("flag");
        if($("#name").val() ==""){
            alert("用户名不能为空，请输入用户名后继续！");
            $("#name").focus();
            return;
        }
        if($("#password").val() == ""){
            alert("用户密码为空，请输入用户密码后继续！");
            $("#password").focus();
            return;
        }
        var fdata = $("#flogin_form").serialize();
        $.param(fdata);
        //console.log(fdata);
        $.ajax({
            url:"../../account/login",
            type:"POST",
            data:fdata,
            // processData:false,
            contentType:"application/x-www-form-urlencoded; charset=utf-8",
            dataType:"json",
            success:function(result){
                //var obj=eval("("+result+")");
                //或者$.parsejson(data);
                if(result.code==0){
                    alert(result.message);
                    position.href=".././fundManage.html";
                }else if(result.code==1){
                    alert(result.message);
                }
            }
        });

    }
</script>